﻿
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Stock.Model;
using Stock.Model.Entities;
using Stock.Model.ViewModels;

namespace Stock.Core.Services
{
    public interface IUserService
    {
        Task<BaseResult> Login(string username, string pwd);
        Task<bool> Add(InsertUser u);
        Task<bool> CheckExsit(string username);
        Task<bool> CheckExsitParent(string parentid);
        Task<user> getUser(Guid userid);
        Task<bool> SaveUser(user usr, bool tran);
        Task<BaseResult> getCurrentFinance(Guid userid);
        Task<bool> UpdateUser(user usr, bool tran);
        Task<dynamic> GetList();
        Task<bool> Addmoneny(Guid userid, double moneny);
        Task<List<add_monenys>> AddLog(Guid? userid, DateTime? start =null, DateTime? end=null);
        Task<bool> ChangePwd(string username, string pwd, string newpwd);
        Task<double> getBalance(Guid userid);
    }
}
